#include<iostream>
using namespace std;

int main() {

	int arr[] = {8,6,3,4,5};

	int start = 0;
	int end = sizeof(arr) / sizeof(arr[0]) - 1;

	//cout << end;

	
	while (start < end)
	{	
		int eum = 0;
		eum = arr[start];
		arr[start] = arr[end];
		arr[end] = eum;
		start++;
		end--;
	}


	for (int i = 0; i < 5; i++)
	{
		cout<<arr[i]<<endl;
	}

	system("pause");
	return 0;
}